﻿<phone:PhoneApplicationPage 
    x:Class="Phone7.CarFinder.PhotoPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:CarFinder="clr-namespace:Phone7.CarFinder" FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

	<phone:PhoneApplicationPage.Resources>
		<CarFinder:ImageConverter x:Key="ImageConverter" />
	</phone:PhoneApplicationPage.Resources>
	
    <!--LayoutRoot contains the root grid where all other page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
		<Image Source="{Binding Settings.Photo, Converter={StaticResource ImageConverter}}" />
    </Grid>

	<phone:PhoneApplicationPage.ApplicationBar>
		<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
			<shell:ApplicationBarIconButton x:Name="appbar_TakePhoto" Click="appbar_TakePhoto_Click" IconUri="/Images/light/appbar.save.rest.png" Text="Take Photo"></shell:ApplicationBarIconButton>
			<shell:ApplicationBarIconButton x:Name="appbar_ClearPhoto" Click="appbar_ClearPhoto_Click" IconUri="/Images/light/appbar.feature.search.rest.png" Text="Clear Photo"></shell:ApplicationBarIconButton>
		</shell:ApplicationBar>
	</phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
